﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BUS;
using DTO;

namespace GUI
{
    public partial class frmDonTraHang : Form
    {
        public frmDonTraHang()
        {
            InitializeComponent();
        }

        private void frmDonTraHang_Load(object sender, EventArgs e)
        {
            //MatHangBUS mhbus = new MatHangBUS();
            //List<MatHangDTO> ds1 = new List<MatHangDTO>();
            //ds1 = mhbus.LayDanhSachMatHang();

            //cbbTenMH.DataSource = ds1;
            //cbbTenMH.DisplayMember = "TenMatHang";
            //cbbTenMH.ValueMember = "MaMatHang";

            //XuatXuBUS xxbus = new XuatXuBUS();
            //List<XuatXuDTO> ds2 = new List<XuatXuDTO>();
            //ds2 = xxbus.LayDSXX();

            //cbbXuatXu.DataSource = ds2;
            //cbbXuatXu.DisplayMember = "TenXuatXu";
            //cbbXuatXu.ValueMember = "MaXuatXu";

            //DonViTinhBUS dvtbus = new DonViTinhBUS();
            //List<DonViTinhDTO> ds3 = new List<DonViTinhDTO>();
            //ds3 = dvtbus.LayDSDVT();

            //cbbDonViTinh.DataSource = ds3;
            //cbbDonViTinh.DisplayMember = "TenDonViTinh";
            //cbbDonViTinh.ValueMember = "MaDonViTinh";

            //NhaCungCapBUS nccbus = new NhaCungCapBUS();
            //List<NhaCungCapDTO> ds4 = new List<NhaCungCapDTO>();
            //ds4 = nccbus.LayDSNCC();

            //cbbTenNCC.DataSource = ds4;
            //cbbTenNCC.DisplayMember = "TenNhaCC";
            //cbbTenNCC.ValueMember = "MaNhaCC";

            //LoiMatHangBUS lmhbus = new LoiMatHangBUS();
            //List<LoiMatHangDTO> ds5 = new List<LoiMatHangDTO>();
            //ds5 = lmhbus.LayDSLMH();

            //cbbLoiMatHang.DataSource = ds5;
            //cbbLoiMatHang.DisplayMember = "TenLoiMH";
            //cbbLoiMatHang.ValueMember = "MaLoiMH";
        }
    }
}
